#include <stdio.h>
#include <string.h>

#include "io_uart.h"





int main(void) {
    char sbuf[100], rbuf[3000];
    unsigned int len;
    if(simple_uart_init("/dev/ttyS9", 230400)) {
        return -1;
    }
    while(1) {
        len = simple_uart_rec(rbuf, 3000);
        if(len > 0) {
            printf("rec: %d\r\n", len);
        }
        usleep(10*1000);
    }
    return 0;
}

